package com.lbc.bean.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @author xyl
 * @date 2021-03-16 19:05
 */
@Data
public class RegisterDTO {
    @ApiModelProperty(value = "用户名",required = true)
    @NotBlank(message = "用户名不能为空!")
    private String username;

    @ApiModelProperty(value = "邮箱",required = true)
    @NotBlank(message = "邮箱不能为空!")
    private String email;

    @ApiModelProperty(value = "邮箱验证码",required = true)
    @NotBlank(message = "邮箱验证码不能为空!")
    private String emailCode;

    @ApiModelProperty(value = "密码",required = true)
    @NotBlank(message = "密码不能为空!")
    private String password;
}
